<?php
class M_m_karyawan extends Nvl_Model{
	function __construct(){
		parent::__construct();
		$this->table_name='m_karyawan';
		$this->column_primary='karyawan_id';
		$this->column_order='';
		$this->column_unique='';
	}
	
	function data_list($params){
		extract($params);
		if($filter != ''){ $this->db->like('karyawan_name', $filter); }
		$result = $this->db->limit($length, $start)->get('m_karyawan');
		$num_rows=$this->__countRows($this->db->last_query());
		$jsonresult = json_encode($result->result());
		return '{"draw":'.$draw.',"recordsTotal":'.$num_rows.',"recordsFiltered":'.$num_rows.',"data":'.$jsonresult.'}';
	}
}